package com.xuxu.blog.dao;

import com.xuxu.blog.entity.TOrdersEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * 
 * @author maxuxu
 * @email maxuxu019@gmail.com
 * @date 2022-08-21 22:22:31
 */
@Mapper
public interface TOrdersDao extends BaseMapper<TOrdersEntity> {
    @Update("update t_orders set status = #{status},pay_time = #{payTime} where order_no = #{tradeNo}")
    void updateState(@Param("tradeNo") String tradeNo,@Param("status") int status,@Param("payTime") String payTime);
}
